<template>
  <div class="wBd">
    <div class="contArticle">
      <!-- 标题 -->
      <div class="contArticle_tit">
        <h2>{{ deptById.deptName }}</h2>
      </div>
      <div class="contArticle_author">
        <span>成立于：{{ parseTime(deptById.createTime, '{y}-{m}-{d}') }}</span>
        <span>负责人：{{ deptById.leader }}</span>
        <span>联系电话：{{ deptById.phone }}</span>
        <span>邮箱：{{ deptById.email }}</span>
      </div>
      <!-- 正文 -->
      <div class="contArticle_text">
        <div id="fontzoom" >
          <div class="qudiaoBorder">
            <div class="ql-editor" v-html="deptById.deptContent"></div>
          </div>
        </div>
<!--        <div style="text-indent: 2rem;" id="fontzoom" v-html="deptById.deptContent"></div>-->
      </div>
      <div style="margin-top: 20px;"></div>
    </div>
  </div>
</template>

<script>
import { listDept, getDept, delDept, addDept, updateDept, } from '@/api/dept'

export default {
  name: 'Edit',
  data() {
    return {
      deptById: {},
    }
  },
  computed: {
    id() {
      return this.$route.query.id
    }
  },
  created() {
    this.getList(this.id)
  },
  methods: {
    getList(id) {
      getDept(id).then(response => {
        this.deptById=response.data
      })
    },
  }
}
</script>

<style scoped>
.qudiaoBorder .ql-container.ql-snow {
  border: none;
}

.qudiaoBorder .ql-editor {
  overflow: hidden;
  padding: 0;
}
</style>

